package com.mdc.mansion.core.modules.pay.dto;

import com.alibaba.fastjson.JSONObject;
import com.mdc.mansion.common.Md5RsaUtils;

public class AltoResult {
	private String code;
	
	private String err;
	
	private String data;
	
	private String sign;
	
	private JSONObject dataDtl;
	
	private AltoParentResult result;
	
	public AltoParentResult getResult() {
		return result;
	}
	
	public void setResult(AltoParentResult result) {
		this.result = result;
	}
	
	public JSONObject getDataDtl() {
		return dataDtl;
	}
	
	public void setDataDtl(JSONObject dataDtl) {
		this.dataDtl = dataDtl;
	}
	
	public String getData() {
		return data;
	}
	
	public void setData(String data) {
		this.data = data;
	}
	
	public String getCode() {
		return code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	
	public String getErr() {
		return err;
	}
	
	public void setErr(String err) {
		this.err = err;
	}
	
	public String getSign() {
		return sign;
	}
	
	public void setSign(String sign) {
		this.sign = sign;
	}
	
	
	public boolean Verify(AltoResult data, String publicKey, String encode) {
		return Md5RsaUtils.verify(data.getData(),data.getSign(),publicKey,encode);
	}
}
